package com.sunstar.club.subject.application.convert;

import com.sunstar.club.subject.application.dto.SubjectCategoryDto;
import com.sunstar.club.subject.application.dto.SubjectLabelDto;
import com.sunstar.club.subject.domain.entity.SubjectCategoryBo;
import com.sunstar.club.subject.domain.entity.SubjectLabelBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签Dto转换器
 */
@Mapper
public interface SubjectLabelDtoConverter {

    SubjectLabelDtoConverter INSTANCE = Mappers.getMapper(SubjectLabelDtoConverter.class);

    SubjectLabelBo convertDtoToLabelBo(SubjectLabelDto subjectLabelDto);

    List<SubjectLabelDto> convertBoToLabelDtoList(List<SubjectLabelBo> subjectLabelBoList);

}
